package cn.stimd.spring.beans.factory.config;

import cn.stimd.spring.beans.BeansException;
import cn.stimd.spring.beans.factory.BeanFactory;

/**
 * Created by Stimd
 * 项目地址：https://gitee.com/stimd/spring-wheel
 * 公众号：Java编程探微
 */
public interface AutowireCapableBeanFactory extends BeanFactory {

    /**
     * 解析依赖
     * @param descriptor            依赖描述符
     * @param requestingBeanName    自动装配的目标对象
     */
    Object resolveDependency(DependencyDescriptor descriptor, String requestingBeanName) throws BeansException;
}
